﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once

#include "GcmpUiViewInterface.h"

namespace gcmp
{
class IDocument;
class IUiView;
class IUiDocument;
class IModelView;

/// \brief Ui文档视图工具类
class GCMP_UI_VIEW_INTERFACE_EXPORT UiDocumentViewUtils
{
public: 
    /// \brief 获取当前Ui视图
    ///
    /// \return 当前Ui视图指针
    static IUiView* GetCurrentUiView();

    /// \brief 获取当前Ui文档
    ///
    /// \return 当前Ui文档指针
    static IUiDocument*  GetCurrentUiDocument();

    /// \brief 获取当前模型视图
    ///
    /// \return 模型当前视图指针
    static IModelView* GetCurrentModelView();

    /// \brief 获取Db文档
    ///
    /// \return Db文档的指针   
    static IDocument* GetCurrentDocument();

};

}   // end namespace gcmp

